package com.itcp.itelpicture.domain.dto.community;

import com.itcp.itelpicture.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 查询社区文章请求
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CommunityPostQueryRequest extends PageRequest implements Serializable {
    /**
     * 文章ID
     */
    private Long id;

    /**
     * 搜索词
     */
    private String searchText;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 作者ID
     */
    private Long userId;

    /**
     * 所属社区ID
     */
    private Long communityId;

    /**
     * 标签列表
     */
    private List<String> tags;

    /**
     * 是否只看精华
     */
    private Boolean essenceOnly;

    /**
     * 是否只看置顶
     */
    private Boolean topOnly;

    /**
     * 热门排序 - 按点赞数、评论数排序
     */
    private Boolean hotOrder;

    private static final long serialVersionUID = 1L;
}